export class HTTPError extends Error {
  status: number;
  error: string;

  constructor(error: { status: number; error: string }) {
    super(`${error.status} ${error.error}`);
    this.status = error.status;
    this.error = error.error;
  }
}
